projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3bf39b
)
Fix gtk_fixed_get_preferred_width
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 27 Oct 2010 16:53:47 +0000
(12:53 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 27 Oct 2010 16:53:47 +0000
(12:53 -0400)
When dealing with widths, use x, not y.
Spotted by Ignacio Casal Quintero.
gtk/gtkfixed.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfixed.c
b/gtk/gtkfixed.c
index abdeb54aa5f33dfca0aa73b0631f79781f44b5cf..cf9fb20dfe8c5a63b65de1da8149fe54bbf80e9e 100644
(file)
--- a/
gtk/gtkfixed.c
+++ b/
gtk/gtkfixed.c
@@
-337,8
+337,8
@@
gtk_fixed_get_preferred_width (GtkWidget *widget,
gtk_widget_get_preferred_width (child->widget, &child_min, &child_nat);
- *minimum = MAX (*minimum, child->
y
+ child_min);
- *natural = MAX (*natural, child->
y
+ child_nat);
+ *minimum = MAX (*minimum, child->
x
+ child_min);
+ *natural = MAX (*natural, child->
x
+ child_nat);
}
}